package cn.itmantzy.pet.service;


import cn.itmantzy.basic.service.IBaseService;
import cn.itmantzy.basic.util.PageList;
import cn.itmantzy.pet.domain.Pet;
import cn.itmantzy.pet.domain.SearchMasterMsg;
import cn.itmantzy.pet.query.SearchMasterMsgQuery;
import cn.itmantzy.user.domain.Logininfo;

import javax.servlet.http.HttpServletRequest;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    void publish(SearchMasterMsg masterMsg, HttpServletRequest request);

    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo currentLogininfo);

    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo currentLogininfo);

    PageList user(SearchMasterMsgQuery query, Logininfo currentLogininfo);

    /**
     * 处理待处理消息
     * @param pet
     * @param logininfo
     */
    void handle(Pet pet, Logininfo logininfo);
}
